package com.hqhsc.module.manage.activity.domain;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ActivityTempletRowMapper implements RowMapper<ActivityTemplet>{
	public ActivityTemplet mapRow(ResultSet rs, int arg1) throws SQLException {
        ActivityTemplet activityTemplet=new ActivityTemplet();

        activityTemplet.setId(rs.getInt("id"));
        activityTemplet.setName(rs.getString("name"));
        activityTemplet.setActivity_type(rs.getString("activity_type"));
        activityTemplet.setAlias(rs.getString("alias"));
        activityTemplet.setCover_url(rs.getString("cover_url"));
        activityTemplet.setPreview_url(rs.getString("preview_url"));
        activityTemplet.setStatus(rs.getInt("status"));

		return activityTemplet;
	}
}
